%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LaTeX source code for Diplomarbeit
%% author : Qiang Li
%% create : Sonntag, August 10, 2008  17:23
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[12pt, a4paper, titlepage, bibgerm]{report}
%% book, article, scrartcl, scrartcl, report, slides, letter, scrbook,
%% amsbook, amsart, scrreprt

%%%%%%%%%%%%%%%%%%%% packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[babel, german=quotes]{csquotes}
\usepackage{bibgerm}
\usepackage{amsmath}
\usepackage[pdftex]{graphicx}
\usepackage{color}
\usepackage{lmodern} %% default font style
% times; pslatex; helvet; bookman; newcent; palatino; kpfonts; lmodern;
%% hyper linker style and PDF properties setting
\usepackage{tocbibind}
\usepackage[pdftex]{hyperref}
\hypersetup{
    pdftitle = {Diplomarbeit},
    pdfauthor = {Qiang Li},
    bookmarksopen={true},
    colorlinks={true},
    linkcolor={black},
    urlcolor={blue},
    citecolor={blue},
    pdfpagemode={UseOutlines}, %%None,UseThumbs,UseOutlines,FullScreen
    pdfstartview=FitH
}
%%%%%%%%%%%%%%% new length for parindent und parskip %%%%%%%%%%%%%%%%%%
\setlength{\parindent}{0pt}
\setlength{\parskip}{2ex plus0.3ex minus0.1ex}
\linespread{1.25}
%%%%%%%%% Style for source codes with LaTeX package listings %%%%%%%%%%
%% color definition for source style
\definecolor{mygray}{gray}{0.95}
\definecolor{fontgray}{gray}{0.35}
\definecolor{darkgreen}{rgb}{0,0.60,0.60}

\usepackage{listings}
\lstset{%
    basicstyle={\small \ttfamily},
    % language=Java,
    numbers=left,
    numberstyle=\tiny,
    stepnumber=1,
    numbersep=5pt,
    breaklines=true,
    frame=lines,
    float=htbp,
    showstringspaces=false,
    % frameround=\thinlines\thinlines\thinlines \thinlines,
    backgroundcolor=\color{mygray},
    keywordstyle=\color{blue},
    stringstyle=\color{darkgreen},
    commentstyle={\color{fontgray} \textit}
}

%%%%%%%%% pageheader and pagefooter style %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyhead[L]{\small \slshape \rightmark}
\fancyhead[R]{\small \thepage}
% \fancyhead[EL]{\small \slshape \leftmark}
% \fancyfoot[C]{\small \thepage }
\setlength{\headheight}{15pt}
\renewcommand{\headrulewidth}{0.4pt} %% line for pageheader
%% \renewcommand{\footrulewidth}{0.4pt} %% line for pagefooter
\fancypagestyle{plain}{     %new define plain style for Chapter begin page
    \fancyhf{}
    % \fancyhead[L]{\small \slshape \leftmark}
    \fancyhead[R]{\small \thepage}
    \renewcommand{\headrulewidth}{0.4pt}
}

\renewcommand{\chaptermark}[1]{%
	\markboth{\chaptername
	\ \thechapter.\ #1}{}
}

%%%%%%%%%%%%%% URL in Bibtex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{url}
%% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%
  \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% main content block %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
	\input{titlepage.tex}

    \input{kapitel1.tex}
    \input{kapitel2.tex}
    \input{kapitel3.tex}
	\input{implement.tex}
	\input{fazit.tex}

    \appendix  %% begin of appendix
    \input{anhangen.tex}
    \input{anhang2.tex}

    \bibliographystyle{gerplain} %plain, deutsche style:gerplain, gerabbrv
    % geralpha, gerapali, gerunsrt
	\bibliography{../bib/mybib}
	% \addcontentsline{toc}{chapter}{Literaturverzeichnis}
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%
% EOF
% 